package com.lm.activiti.boot.annotation.parser;

import com.lm.activiti.boot.annotation.MathAdd;
import com.lm.activiti.boot.annotation.MessagePush;
import org.springframework.core.annotation.AnnotationUtils;

/**
 * @author lm_jcf
 * @date 2020/8/13 11:42
 */
public class MessagePushTest {

    @MessagePush(message = "我不晓得",targetClass = "")
    public void messagePushHandle(){

    }

    public static void main(String[] args) throws NoSuchMethodException {

        MessagePushTest messagePushTest = new MessagePushTest();
        MessagePush messagePush = AnnotationUtils.findAnnotation(messagePushTest.getClass().getMethod("messagePushHandle"), MessagePush.class);

        System.out.println(messagePush.targetClass());

        MathAdd add = (int a, int b) -> a + b;

        System.out.println(add.add(1,5));
    }
}
